/*
    SUSAN® - Sole of Unix Save ANything

   Copyright (C) 2016-2019 Skyatlas co. ltd

   
*/

#ifndef BAREOS_FILED_VERIFY_H_
#define BAREOS_FILED_VERIFY_H_ 1

namespace filedaemon {

int DigestFile(JobControlRecord* jcr, FindFilesPacket* ff_pkt, DIGEST* digest);
void DoVerify(JobControlRecord* jcr);
void DoVerifyVolume(JobControlRecord* jcr);
bool CalculateAndCompareFileChksum(JobControlRecord* jcr,
                                   FindFilesPacket* ff_pkt,
                                   const char* fname,
                                   const char* chksum);

} /* namespace filedaemon */

#endif /* BAREOS_FILED_VERIFY_H_ */
